package com.zhiyou100.api.exception_demo;

/**
 * 自定义异常   继承  RuntimeException或者Exception
 */
public class MyException extends RuntimeException{


    public MyException(){
        super();
    }
    //通过有参构造自定义异常信息
    public MyException(String msg){
        super(msg);
    }
    //其他操作也可以出现

}
